package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entiey.Spu;

public interface SpuService extends IService<Spu> {
    //分页查询商品信息
    PageDTO<SpuDTO> querySpuByPage(Long brandId, Long categoryId, Long id, Long page, Long rows, Boolean saleable);
    //新增商品
    void saveGoods(SpuDTO spuDTO);
    //商品上下架
    void updateSaleableById(Long id, Boolean saleable);
    //查询商品信息
    SpuDTO querySpuAndSkuAndSpuDetailById(Long id);
    //修改商品
    void updateGoods(SpuDTO spuDTO);
}